Repository navigation
fix(admission): accept verified bound Pod topology - #359
Merged
Merged
Conversation
Reuse the common executor for governed Custom creation, retained lifecycle, typed Gateway and network controls, private Chat and isolated terminal access. Preserve image entrypoints and non-root identities while retaining existing managed and non-Sandbox behavior.\n\nInclude generated policy schemas, Portal wiring, static probe packaging and offline regression coverage. Keep unsupported identity, mTLS and desktop combinations fail-closed and document the live qualification boundary. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Retain Custom ingress and terminal contracts alongside native identity pinning and expectation validation. Update the Entra renderer tests for the shared validation signature and preserve fail-closed handling of unsupported Custom Entra projection. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Yield to the Node scheduler within act before arming the window access trap. Preserve the stale-dispatch negative control and late Chat completion assertions without retries or a longer timeout. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Reuse assigned-Node topology verification for rendered Pod updates and Custom terminal CONNECT. Keep exact template checks and reject changed placement, stale topology, and unavailable Nodes. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Resolve #359 post-squash conflicts while preserving assigned-Node topology validation, regression coverage, and current main changes. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
7 of 8 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Validate scheduler-added Pod topology against the current assigned Node when checking a Custom terminal's CONNECT target or updating an already-bound common-executor Pod.
Kubernetes copies region/zone labels during Pod binding. The rendered-template validator previously treated those legitimate additions as unrelated labels, leaving the Custom terminal unready even after the main container was ready. Reuse the existing Node-verified topology logic rather than ignoring labels or bypassing CONNECT authorization.
Keep exact template, owner, source and reservation checks. Reject forged topology, unavailable Nodes, unrelated labels and attempts to change an already-bound Pod's Node. Add regression coverage for both rendered workload kinds and real API-server binding on Kata/container configurations.
Related issue
Focused follow-up to #354, discovered during authorized isolated validation. This PR targets
feat/custom-sandbox-runtime; it is independent of the Portal model-selection follow-up #357 and does not merge either prerequisite.Validation
Offline checks used Go 1.27.3, Helm 3.22, pinned Kubernetes 1.37 local API-server assets and Hugo 0.164.0 extended.
USE_EXISTING_CLUSTER=falseand an empty kubeconfig kept these tests separate from the live environment. Commands are relative to the repository root.Authorized live evidence before the repair: both Custom main containers became ready with their requested runtime classes and no restarts, while their separate terminals received CONNECT rejections. The additional Pod fields were the scheduler's region/zone labels. Both failed attempts were retained and their Agents/namespaces were subsequently removed through ordinary owner deletion. No protected Agent admin exec, port-forward, finalizer stripping or forced volume detach was used. No private diagnostic bundle is attached.
Compatibility and operational impact
No CRD, dependency or RBAC expansion. Admission already has read-only Node access. Initial Pod creation still uses the exact approved template; bound updates and terminal targets additionally verify the two standard topology labels against the assigned Node. Missing or terminating Nodes fail closed.
This is not physical fencing or unavailable-node failover. Existing immutable placement, template pins and terminal caller/target restrictions remain in force. Maintainer review and the new PR's CI/CLA checks are still required.
Checklist